home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / t_sys5 / unixkit.tgz / unixkit.tar / unixkit / tundrvr / if_tnreg.h next >
Text File  |  1989-02-24  |  2KB  |  52 lines

  1. /*
  2.  * Copyright (c) 1988, Julian Onions. 
  3.  *
  4.  * This source may be freely distributed, however I would be interested
  5.  * in any changes that are made.
  6.  */
  7.  
  8. /*
  9.  * $Header: if_tnreg.h,v 1.6 88/07/11 08:28:48 jpo Exp $
  10.  *
  11.  * $Log:    if_tnreg.h,v $
  12.  * Revision 1.6  88/07/11  08:28:48  jpo
  13.  * Some tidying up
  14.  * 
  15.  * Revision 1.5  87/11/04  14:14:29  jpo
  16.  * Update a few flags etc.
  17.  * 
  18.  * Revision 1.4  87/10/19  08:35:09  jpo
  19.  * General clean up - plus sun specific fixes
  20.  * 
  21.  * Revision 1.3  87/10/16  17:09:10  jpo
  22.  * Purged the ad-hoc routing stuff. Added select too.
  23.  * 
  24.  * Revision 1.2  87/10/04  18:30:05  jpo
  25.  * Added select & r/w
  26.  * 
  27.  *
  28.  */
  29. /*
  30.  * defines for the Tunnel pseudo driver.
  31.  */
  32.  
  33. /* #define TUNMTU    576    /* maximum size packet sent to iface */
  34. #define TUNMTU        1500    /* maximum size packet sent to iface */
  35.  
  36. #define TUN_INITED      0x001    /* device has been initialised */
  37. #define TUN_RWAIT       0x002    /* waiting for a read from the i/f */
  38. #define TUN_OPEN        0x004    /* device is open */
  39. #define TUN_IASET    0x008    /* interface address set */
  40. #define    TUN_DSTADDR    0x010    /* destination address set */
  41. #define TUN_READY    (TUN_IASET|TUN_OPEN|TUN_DSTADDR)
  42.                 /* device ready for use */
  43. #define TUN_WCOLL    0x020    /* select write collision (not supported) */
  44. #define TUN_RCOLL    0x040    /* select collision on read */
  45. #define TUN_NBIO    0x080    /* non block I/O state */
  46. #define TUN_ASYNC    0x100    /* async I/O state */
  47. /*
  48.  * ioctl calls for the special device.
  49.  */
  50. #define TUNSDEBUG       _IOW(u, 0, int) /* set debugging level on/off */
  51. #define TUNGDEBUG    _IOR(u, 1, int) /* read debugging level */
  52.